package com.ftg.learn.chapter10.base01;

import org.apache.ibatis.annotations.*;

import java.util.List;
import java.util.Map;

/**
 * 描述     老师接口
 *
 * @author 布衣
 * @date 2024/9/11
 */
public interface Teachers {

    @Select("select * from teachers")
    List<Map<String,Object>> list();

    List<Map<String,Object>> listById();

    int save(@Param("tname") String tname,@Param("dt") String dt);

    int update(@Param("te") TeacherEntity te);

    int updateForId(@Param("te") TeacherEntity te,@Param("id") Integer id);

    int delete(@Param("id") Integer id);


}
